<?php

namespace DesignNew\Observer;

/**
 * 程序示例
 * 以上述求职订阅为例，首先给出求职者，有职位发布时会收到通知
 */
class JobPost
{
    protected $title;

    public function __construct(string $title)
    {
        $this->title = $title;
    }

    public function getTitle()
    {
        return $this->title;
    }
}